﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Collections.ObjectModel;

namespace DataEntity
{
    /// <summary>
    /// 纵向规则波LRWT
    /// </summary>
   public  class LWATExperimentEntity : INotifyPropertyChanged
    {
        #region PropertyChanged事件
        public event PropertyChangedEventHandler PropertyChanged;

        public void OnPropertyChanged(string PropName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(PropName));
            }
        }
        #endregion

        private int _ID;

        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        

        private float _Volume;
        public float Volume
        {
            get { return _Volume; }
            set { _Volume = value; }
        }

        private float _Height;
        public float Height
        {
            get { return _Height; }
            set { _Height = value; }
        }

        private string _Location;
        public string Location
        {
            get { return _Location; }
            set { _Location = value; }
        }

        private float _YSemi;
        public float YSemi
        {
            get { return _YSemi; }
            set { _YSemi = value; }
        }

        private float _XSemi;
        public float XSemi
        {
            get { return _XSemi; }
            set { _XSemi = value; }
        }

        private ObservableCollection<ChiShuiEntity> _ChiShuiEntitys;
        public ObservableCollection<ChiShuiEntity> ChiShuiEntitys
        {
            get { return _ChiShuiEntitys; }
            set { _ChiShuiEntitys = value; }
        }

        private ObservableCollection<SpeedEntity> _SpeedEntitys;
        public ObservableCollection<SpeedEntity> SpeedEntitys
        {
            get { return _SpeedEntitys; }
            set { _SpeedEntitys = value; }
        }

        private ObservableCollection<SpeedEntity> _RateEntitys;
        public ObservableCollection<SpeedEntity> RateEntitys
        {
            get { return _RateEntitys; }
            set { _RateEntitys = value; }
        }

        private int _ProjectID;
        public int ProjectID
        {
            get { return _ProjectID; }
            set { _ProjectID = value; }
        }

        private string _ExperimentType;
        public string ExperimentType
        {
            get { return _ExperimentType; }
            set { _ExperimentType = value; }
        }
        

        public string Text
        {
            get { return ToString(); }
        }

        public override string ToString()
        {
            return "排水体积:" + Volume + ";船舶重心高度:"
                + Height + ";船舶重心纵向位置:" + Location + ";船舶纵向惯性半径:" + YSemi + ";船舶横向惯性半径:" + XSemi;
        }
    }
}
